#pragma once
#include <iostream>
#include <unistd.h>

namespace TaskModule
{
    class Task
    {
    public:
        Task()
        {}
        Task(int a,int b)
        :x(a),y(b)
        {}

        void Excute()
        {
            sleep(1);        // 1s来模拟执行任务的时长
            reasult = x + y; // 可以改成其他任务
        }
        int X()
        {
            return x;
        }
        int Y()
        {
            return y;
        }
        int Reasult()
        {
            return reasult;
        }
        ~Task() {}

    private:
        int x;
        int y;
        int reasult;
    };

}